package com.zhixue.content.feignclient;

import com.zhixue.content.feignclient.po.CourseIndex;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Auther: 李 力
 * @Date: 2025/5/8
 * @Description: com.zhixue.content.feignclient
 * @version: 1.0
 */
@Component
public class SearchServiceClientFallbackFactory implements FallbackFactory<SearchServiceClient> {
    @Override
    public SearchServiceClient create(Throwable throwable) {
        return new SearchServiceClient() {
            @Override
            public Boolean add(CourseIndex courseIndex) {
                return false;
            }
        };
    }
}
